import request from '@/utils/request'
export function addEmployee(data) {
  return request({
    url: '/sys/user',
    method: 'post',
    data
  })
}
export const updateEmployeeAPI = data => request.put(`/sys/user/${data.id}`, data)

/**
 * @returns 回显数据表格
*/
export const getEmployeeDetailAPI = id => request.get(`/sys/user/${id}`)

/**
 *
 * @returns 获取表格数据
 */
export const getEmployeeTableAPI = params => request.get('/sys/user', { params })
/**
 *
 * @returns 删除表格数据
 */
export const delemployeeTableAPI = id => request.delete(`/sys/user/${id}`)
